<script type="text/javascript">
	//List Configuration
	$j("#list_test").jqGrid({
		url:'test/list',
		datatype:'json',
		mtype:'POST',
		colNames:['Test Data'],
		colModel:[
				  {
					  name:'test_data',
					  index:'test_data',
					  width:30,
					  editable: true
				  }
		],
		pager :'#gridpager_test',
		rowNum : 10,
		rowList :[10,20,30],
		sortname :'test_data',
		sortorder :'asc',
		autowidth :true,
		viewrecords :true,
		onSelectRow :function(id){},
		editurl:'test/save',
		//caption:'Usuarios'
	});
	
	//Form editing
	$j("#list_test").jqGrid(
			'navGrid',
			'#gridpager_test',
			{
				edit:true,
				add:true,
				del:true,
				search:true
			},
			{
				width: 400,
				height: 400,
				closeAfterEdit: true
			}
	);
</script>
